/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package teste;

/**
 *
 * @author Caio Valentim
 */
public class Teste {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        CasaAbstrata casa = new CasaGrande(new CasaRústica());
        casa.construir();
        casa = new CasaPequena(new CasaModerna());
        casa.construir();
        
        casa = new CasaGrande(new CasaModerna());
        casa.construir();
    }
}
